﻿using System;
using System.Collections.Generic;
using System.Data;
using nkstdgia.common.ThamDinhGia.BusinessObjects;
using nkstdgia.common.ThamDinhGia.DataLayer;

namespace nkstdgia.common.ThamDinhGia.BusinessLogic
{
    public class GIA_DOAN_DUONGBL
    {
        #region ***** Init Methods *****
        GIA_DOAN_DUONGDA objGIA_DOAN_DUONGDA;
        public GIA_DOAN_DUONGBL()
        {
            objGIA_DOAN_DUONGDA = new GIA_DOAN_DUONGDA();
        }
        #endregion

        #region ***** Get Methods *****
        /// <summary>
        /// Get GIA_DOAN_DUONG by ma_gdd
        /// </summary>
        /// <param name="ma_gdd">MA_GDD</param>
        /// <returns>GIA_DOAN_DUONG</returns>
        public GIA_DOAN_DUONG GetByMA_GDD(Int64 ma_gdd)
        {
            return objGIA_DOAN_DUONGDA.GetByMA_GDD(ma_gdd);
        }

        /// <summary>
        /// Get all of GIA_DOAN_DUONG
        /// </summary>
        /// <returns>List<<GIA_DOAN_DUONG>></returns>
        public List<GIA_DOAN_DUONG> GetList()
        {
            return objGIA_DOAN_DUONGDA.GetList();
        }

        /// <summary>
        /// Get DataSet of GIA_DOAN_DUONG
        /// </summary>
        /// <returns>DataSet</returns>
        public DataSet GetDataSet()
        {
            return objGIA_DOAN_DUONGDA.GetDataSet();
        }


        /// <summary>
        /// Get all of GIA_DOAN_DUONG paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>List<<GIA_DOAN_DUONG>></returns>
        public List<GIA_DOAN_DUONG> GetListPaged(int recperpage, int pageindex)
        {
            return objGIA_DOAN_DUONGDA.GetListPaged(recperpage, pageindex);
        }

        /// <summary>
        /// Get DataSet of GIA_DOAN_DUONG paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>DataSet</returns>
        public DataSet GetDataSetPaged(int recperpage, int pageindex)
        {
            return objGIA_DOAN_DUONGDA.GetDataSetPaged(recperpage, pageindex);
        }


        /// <summary>
        /// Get all of GIA_DOAN_DUONG by MA_GDD
        /// </summary>
        /// <param name="ma_gdd">MA_GDD</param>
        /// <returns>List<<GIA_DOAN_DUONG>></returns>
        public List<GIA_DOAN_DUONG> GetListByMA_GDD(Int64 ma_gdd)
        {
            return objGIA_DOAN_DUONGDA.GetListByMA_GDD(ma_gdd);
        }

        /// <summary>
        /// Get DataSet of GIA_DOAN_DUONG by MA_GDD
        /// </summary>
        /// <param name="ma_gdd">MA_GDD</param>
        /// <returns>DataSet</returns>
        public DataSet GetDataSetByMA_GDD(Int64 ma_gdd)
        {
            return objGIA_DOAN_DUONGDA.GetDataSetByMA_GDD(ma_gdd);
        }


        /// <summary>
        /// Get all of GIA_DOAN_DUONG by MA_GDD paged
        /// </summary>
        /// <param name="ma_gdd">MA_GDD</param>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>List<<GIA_DOAN_DUONG>></returns>
        public List<GIA_DOAN_DUONG> GetListByMA_GDDPaged(Int64 ma_gdd, int recperpage, int pageindex)
        {
            return objGIA_DOAN_DUONGDA.GetListByMA_GDDPaged(ma_gdd, recperpage, pageindex);
        }

        /// <summary>
        /// Get DataSet of GIA_DOAN_DUONG by MA_GDD paged
        /// </summary>
        /// <param name="ma_gdd">MA_GDD</param>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>DataSet</returns>
        public DataSet GetDataSetByMA_GDDPaged(Int64 ma_gdd, int recperpage, int pageindex)
        {
            return objGIA_DOAN_DUONGDA.GetDataSetByMA_GDDPaged(ma_gdd, recperpage, pageindex);
        }

        #endregion

        #region ***** Add Update Delete Methods *****
        /// <summary>
        /// Add a new GIA_DOAN_DUONG within GIA_DOAN_DUONG database table
        /// </summary>
        /// <param name="obj_gia_doan_duong">GIA_DOAN_DUONG</param>
        /// <returns>key of table</returns>
        public long Add(GIA_DOAN_DUONG obj_gia_doan_duong)
        {
            return objGIA_DOAN_DUONGDA.Add(obj_gia_doan_duong);
        }

        /// <summary>
        /// updates the specified GIA_DOAN_DUONG
        /// </summary>
        /// <param name="obj_gia_doan_duong">GIA_DOAN_DUONG</param>
        /// <returns></returns>
        public void Update(GIA_DOAN_DUONG obj_gia_doan_duong)
        {
            objGIA_DOAN_DUONGDA.Update(obj_gia_doan_duong);
        }

        /// <summary>
        /// Delete the specified GIA_DOAN_DUONG
        /// </summary>
        /// <param name="ma_gdd">MA_GDD</param>
        /// <returns></returns>
        public void Delete(Int64 ma_gdd)
        {
            objGIA_DOAN_DUONGDA.Delete(ma_gdd);
        }
        #endregion

    }
}
